package com.spring.sunflower.userinfo

import android.content.Context
import android.widget.TextView
import com.lxj.xpopup.core.BottomPopupView
import com.spring.sunflower.R

/**
 * Created by Kevin on 2021/8/16<br/>
 *
 * Describe:<br/>
 */
class AuthRealBottomDialog(context: Context) : BottomPopupView(context) {
    override fun getImplLayoutId(): Int {
        return R.layout.layout_bottom_auth_real
    }

    override fun onCreate() {
        super.onCreate()
        var tvDone = findViewById<TextView>(R.id.tvDone)
        tvDone.setOnClickListener {
            listener?.onDoneClick()
            dismiss()
        }
    }

    interface OnDoneClickListener {
        fun onDoneClick()
    }

    var listener: OnDoneClickListener? = null
    fun setOnDoneClickListener(l: OnDoneClickListener) {
        listener = l
    }
}